package com.itcast.fjs.service;

import com.itcast.fjs.mapper.UserMapper;
import com.itcast.fjs.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author feng js
 */
@Service
public class UserService {
    @Autowired
    UserMapper userMapper;

    public User findUserById(Integer id) {
        User user = userMapper.findUserById(id);
        return user;
    }
}
